package com.wistech.search.solr.extend;

import org.springframework.beans.factory.annotation.Required;

import com.wistech.search.solr.extend.model.Company;
import com.wistech.search.solr.extend.service.CompanyManager;

/**
 * 公司评分处理器
 * 
 * @author Liuye
 * 
 */
public class CompanyScoreHandler extends ScoreHandler<Company> implements
		DocumentHander {
	private CompanyManager companyManager;

	@Override
	public Company getEntity(String id) {
		return companyManager.getCompany(id);
	}

	/**
	 * @param productManager
	 *            the productManager to set
	 */
	@Required
	public void setCompanyManager(CompanyManager companyManager) {
		this.companyManager = companyManager;
	}
}
